{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/gwf25/Desktop/appendixT1.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 7 Dec 2015, 09:58:05

{com}. do "/Users/gwf25/Dropbox/research/religion/final code/appendixT1.do"
{txt}
{com}. clear
{txt}
{com}. set more off
{txt}
{com}. insheet using "/Users/gwf25/Dropbox/research/religion/final code/OnlineQuests.txt"
{txt}(69 vars, 2006 obs)

{com}. drop if v1 == "ResponseID"
{txt}(1 observation deleted)

{com}. gen treatR = .
{txt}(2005 missing values generated)

{com}. replace treatR = 1 if q5 ~= ""
{txt}(935 real changes made)

{com}. replace treatR = 0 if q7 ~= ""
{txt}(943 real changes made)

{com}. tab treatR

     {txt}treatR {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        943       50.21       50.21
{txt}          1 {c |}{res}        935       49.79      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,878      100.00
{txt}
{com}. 
. drop if classification1_1 == "" & id ~= 215
{txt}(202 observations deleted)

{com}. 
. drop if treatR == .
{txt}(5 observations deleted)

{com}. count if treatR == 1
{res}  895
{txt}
{com}. count if treatR == 0
{res}  903
{txt}
{com}. 
. 
. tab classification1_1

                      {txt}Classification1_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         29        1.61        1.61
{txt}Arts in general (visual art, music, the {c |}{res}         63        3.51        5.12
                       {txt}Athletics/sports {c |}{res}         44        2.45        7.57
 {txt}Birthplace/hometown/place of residence {c |}{res}         12        0.67        8.24
                       {txt}Environmentalism {c |}{res}          3        0.17        8.40
{txt}Food and drink (excluding beer and liqu {c |}{res}          5        0.28        8.68
                                 {txt}Gender {c |}{res}        187       10.41       19.09
                            {txt}Human being {c |}{res}         50        2.78       21.87
                         {txt}Leisure travel {c |}{res}          1        0.06       21.93
       {txt}Mental feature/personality trait {c |}{res}         88        4.90       26.82
    {txt}Nationality/ethnicity/race/language {c |}{res}        137        7.62       34.45
   {txt}Non-family non-romantic relationship {c |}{res}         63        3.51       37.95
{txt}Non-professional interest/dislike/activ {c |}{res}         67        3.73       41.68
        {txt}Non-spousal family relationship {c |}{res}        493       27.43       69.12
                                  {txt}Other {c |}{res}         23        1.28       70.40
{txt}Partying/nightclubs/bars (including bee {c |}{res}          1        0.06       70.45
                       {txt}Physical feature {c |}{res}          6        0.33       70.78
                  {txt}Political Orientation {c |}{res}          1        0.06       70.84
                  {txt}Political orientation {c |}{res}         16        0.89       71.73
           {txt}Pro-social personality trait {c |}{res}         70        3.90       75.63
       {txt}Professional interest/profession {c |}{res}         88        4.90       80.52
     {txt}Religion, morality, and philosophy {c |}{res}        168        9.35       89.87
           {txt}Romantic relationship/status {c |}{res}         33        1.84       91.71
                     {txt}Sexual orientation {c |}{res}         26        1.45       93.16
                    {txt}Socioeconomic class {c |}{res}         11        0.61       93.77
{txt}Specific work of non-religious art or a {c |}{res}          4        0.22       93.99
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        108        6.01      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,797      100.00
{txt}
{com}. replace classification1_1 = "Political orientation" if classification1_1 == "Political Orientation"
{txt}(1 real change made)

{com}. tab classification1_2

                      {txt}Classification1_2 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
    Nationality/ethnicity/race/language {c |}{res}          2       20.00       20.00
       {txt}Professional interest/profession {c |}{res}          2       20.00       40.00
     {txt}Religion, morality, and philosophy {c |}{res}          2       20.00       60.00
           {txt}Romantic relationship/status {c |}{res}          2       20.00       80.00
                    {txt}Socioeconomic class {c |}{res}          1       10.00       90.00
{txt}Student (e.g. Cornell, major, year in s {c |}{res}          1       10.00      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}         10      100.00
{txt}
{com}. tab classification1_3
{txt}no observations

{com}. 
. tab classification2_1

                      {txt}Classification2_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         38        2.15        2.15
{txt}Arts in general (visual art, music, the {c |}{res}         80        4.52        6.67
                       {txt}Athletics/sports {c |}{res}         48        2.71        9.38
 {txt}Birthplace/hometown/place of residence {c |}{res}         24        1.36       10.74
                       {txt}Environmentalism {c |}{res}          6        0.34       11.08
{txt}Food and drink (excluding beer and liqu {c |}{res}          3        0.17       11.25
                                 {txt}Gender {c |}{res}        147        8.31       19.56
                            {txt}Human being {c |}{res}         10        0.57       20.12
                         {txt}Leisure travel {c |}{res}          4        0.23       20.35
       {txt}Mental feature/personality trait {c |}{res}        125        7.07       27.42
    {txt}Nationality/ethnicity/race/language {c |}{res}        165        9.33       36.74
   {txt}Non-family non-romantic relationship {c |}{res}        244       13.79       50.54
{txt}Non-professional interest/dislike/activ {c |}{res}        100        5.65       56.19
        {txt}Non-spousal family relationship {c |}{res}        199       11.25       67.44
                                  {txt}Other {c |}{res}         17        0.96       68.40
{txt}Partying/nightclubs/bars (including bee {c |}{res}          4        0.23       68.63
                       {txt}Physical feature {c |}{res}          5        0.28       68.91
                  {txt}Political orientation {c |}{res}         34        1.92       70.83
           {txt}Pro-social personality trait {c |}{res}         60        3.39       74.22
       {txt}Professional interest/profession {c |}{res}        137        7.74       81.97
     {txt}Religion, morality, and philosophy {c |}{res}        111        6.27       88.24
           {txt}Romantic relationship/status {c |}{res}         73        4.13       92.37
                     {txt}Sexual orientation {c |}{res}         21        1.19       93.56
                    {txt}Socioeconomic class {c |}{res}          8        0.45       94.01
{txt}Specific work of non-religious art or a {c |}{res}          3        0.17       94.18
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        103        5.82      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,769      100.00
{txt}
{com}. tab classification2_2

                   {txt}Classification2_2 {c |}      Freq.     Percent        Cum.
{hline 37}{c +}{hline 35}
                              Gender {c |}{res}          1        9.09        9.09
 {txt}Nationality/ethnicity/race/language {c |}{res}          2       18.18       27.27
{txt}Non-family non-romantic relationship {c |}{res}          1        9.09       36.36
     {txt}Non-spousal family relationship {c |}{res}          2       18.18       54.55
    {txt}Professional interest/profession {c |}{res}          2       18.18       72.73
        {txt}Romantic relationship/status {c |}{res}          3       27.27      100.00
{txt}{hline 37}{c +}{hline 35}
                               Total {c |}{res}         11      100.00
{txt}
{com}. tab classification2_3

              {txt}Classification2_3 {c |}      Freq.     Percent        Cum.
{hline 32}{c +}{hline 35}
                         Gender {c |}{res}          1       50.00       50.00
{txt}Non-spousal family relationship {c |}{res}          1       50.00      100.00
{txt}{hline 32}{c +}{hline 35}
                          Total {c |}{res}          2      100.00
{txt}
{com}. 
. tab classification3_1

                      {txt}Classification3_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         48        2.77        2.77
{txt}Arts in general (visual art, music, the {c |}{res}         78        4.50        7.27
                       {txt}Athletics/sports {c |}{res}         60        3.46       10.73
 {txt}Birthplace/hometown/place of residence {c |}{res}         44        2.54       13.26
                       {txt}Clothing/fashion {c |}{res}          1        0.06       13.32
                       {txt}Environmentalism {c |}{res}          7        0.40       13.73
{txt}Food and drink (excluding beer and liqu {c |}{res}         15        0.87       14.59
                                 {txt}Gender {c |}{res}         94        5.42       20.01
                            {txt}Human being {c |}{res}          7        0.40       20.42
                         {txt}Leisure travel {c |}{res}          2        0.12       20.53
       {txt}Mental feature/personality trait {c |}{res}        107        6.17       26.70
    {txt}Nationality/ethnicity/race/language {c |}{res}        133        7.67       34.37
   {txt}Non-family non-romantic relationship {c |}{res}        181       10.44       44.81
{txt}Non-professional interest/dislike/activ {c |}{res}        118        6.81       51.61
        {txt}Non-spousal family relationship {c |}{res}        187       10.78       62.40
                                  {txt}Other {c |}{res}         12        0.69       63.09
{txt}Partying/nightclubs/bars (including bee {c |}{res}          6        0.35       63.44
                       {txt}Physical feature {c |}{res}         13        0.75       64.19
                  {txt}Political orientation {c |}{res}         51        2.94       67.13
           {txt}Pro-social personality trait {c |}{res}         93        5.36       72.49
       {txt}Professional interest/profession {c |}{res}        145        8.36       80.85
     {txt}Religion, morality, and philosophy {c |}{res}        109        6.29       87.14
           {txt}Romantic relationship/status {c |}{res}         56        3.23       90.37
                     {txt}Sexual orientation {c |}{res}         21        1.21       91.58
                    {txt}Socioeconomic class {c |}{res}         14        0.81       92.39
{txt}Specific work of non-religious art or a {c |}{res}          7        0.40       92.79
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        124        7.15       99.94
                     {txt}sexual orientation {c |}{res}          1        0.06      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,734      100.00
{txt}
{com}. replace classification3_1 = "Sexual orientation" if classification3_1 == "sexual orientation"
{txt}(1 real change made)

{com}. tab classification3_2

                      {txt}Classification3_2 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
Arts in general (visual art, music, the {c |}{res}          1       14.29       14.29
 {txt}Birthplace/hometown/place of residence {c |}{res}          1       14.29       28.57
       {txt}Professional interest/profession {c |}{res}          2       28.57       57.14
           {txt}Romantic relationship/status {c |}{res}          2       28.57       85.71
                     {txt}Sexual orientation {c |}{res}          1       14.29      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}          7      100.00
{txt}
{com}. tab classification3_3

                      {txt}Classification3_3 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
        Non-spousal family relationship {c |}{res}          1       50.00       50.00
{txt}Student (e.g. Cornell, major, year in s {c |}{res}          1       50.00      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}          2      100.00
{txt}
{com}. 
. tab classification4_1

                      {txt}Classification4_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         43        2.56        2.56
{txt}Arts in general (visual art, music, the {c |}{res}         87        5.18        7.75
                       {txt}Athletics/sports {c |}{res}         89        5.30       13.05
 {txt}Birthplace/hometown/place of residence {c |}{res}         67        3.99       17.04
                       {txt}Clothing/fashion {c |}{res}          3        0.18       17.22
                       {txt}Environmentalism {c |}{res}          8        0.48       17.70
{txt}Food and drink (excluding beer and liqu {c |}{res}         13        0.77       18.47
                                 {txt}Gender {c |}{res}         59        3.52       21.99
                            {txt}Human being {c |}{res}          7        0.42       22.41
                         {txt}Leisure travel {c |}{res}         12        0.72       23.12
       {txt}Mental feature/personality trait {c |}{res}        141        8.40       31.53
    {txt}Nationality/ethnicity/race/language {c |}{res}        115        6.85       38.38
   {txt}Non-family non-romantic relationship {c |}{res}        164        9.77       48.15
{txt}Non-professional interest/dislike/activ {c |}{res}        157        9.36       57.51
        {txt}Non-spousal family relationship {c |}{res}        139        8.28       65.79
                                  {txt}Other {c |}{res}         11        0.66       66.45
{txt}Partying/nightclubs/bars (including bee {c |}{res}          4        0.24       66.69
                       {txt}Physical feature {c |}{res}         25        1.49       68.18
                  {txt}Political orientation {c |}{res}         44        2.62       70.80
           {txt}Pro-social personality trait {c |}{res}         76        4.53       75.33
       {txt}Professional interest/profession {c |}{res}        140        8.34       83.67
     {txt}Religion, morality, and philosophy {c |}{res}         73        4.35       88.02
           {txt}Romantic relationship/status {c |}{res}         45        2.68       90.70
                     {txt}Sexual orientation {c |}{res}          8        0.48       91.18
                    {txt}Socioeconomic class {c |}{res}         20        1.19       92.37
{txt}Specific work of non-religious art or a {c |}{res}          5        0.30       92.67
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        122        7.27       99.94
                                  {txt}other {c |}{res}          1        0.06      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,678      100.00
{txt}
{com}. replace classification4_1 = "Other" if classification4_1 == "other"
{txt}(1 real change made)

{com}. tab classification4_2

                      {txt}Classification4_2 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}          1       10.00       10.00
                       {txt}Athletics/sports {c |}{res}          1       10.00       20.00
 {txt}Birthplace/hometown/place of residence {c |}{res}          2       20.00       40.00
                         {txt}Leisure travel {c |}{res}          1       10.00       50.00
   {txt}Non-family non-romantic relationship {c |}{res}          1       10.00       60.00
{txt}Non-professional interest/dislike/activ {c |}{res}          1       10.00       70.00
        {txt}Non-spousal family relationship {c |}{res}          1       10.00       80.00
                       {txt}Physical feature {c |}{res}          1       10.00       90.00
       {txt}Professional interest/profession {c |}{res}          1       10.00      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}         10      100.00
{txt}
{com}. tab classification4_3

                   {txt}Classification4_3 {c |}      Freq.     Percent        Cum.
{hline 37}{c +}{hline 35}
Non-family non-romantic relationship {c |}{res}          1      100.00      100.00
{txt}{hline 37}{c +}{hline 35}
                               Total {c |}{res}          1      100.00
{txt}
{com}. 
. tab classification5_1

                      {txt}Classification5_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         31        1.89        1.89
{txt}Arts in general (visual art, music, the {c |}{res}         88        5.37        7.26
                       {txt}Athletics/sports {c |}{res}         86        5.25       12.52
 {txt}Birthplace/hometown/place of residence {c |}{res}         71        4.33       16.85
                       {txt}Clothing/fashion {c |}{res}          5        0.31       17.16
                       {txt}Environmentalism {c |}{res}         10        0.61       17.77
{txt}Food and drink (excluding beer and liqu {c |}{res}         20        1.22       18.99
                                 {txt}Gender {c |}{res}         46        2.81       21.79
                            {txt}Human being {c |}{res}         20        1.22       23.02
                         {txt}Leisure travel {c |}{res}          9        0.55       23.57
       {txt}Mental feature/personality trait {c |}{res}        182       11.11       34.68
    {txt}Nationality/ethnicity/race/language {c |}{res}        123        7.51       42.19
   {txt}Non-family non-romantic relationship {c |}{res}        130        7.94       50.12
{txt}Non-professional interest/dislike/activ {c |}{res}        186       11.36       61.48
        {txt}Non-spousal family relationship {c |}{res}         99        6.04       67.52
                                  {txt}Other {c |}{res}         18        1.10       68.62
{txt}Partying/nightclubs/bars (including bee {c |}{res}          5        0.31       68.93
                       {txt}Physical feature {c |}{res}         21        1.28       70.21
                  {txt}Political orientation {c |}{res}         48        2.93       73.14
           {txt}Pro-social personality trait {c |}{res}         75        4.58       77.72
       {txt}Professional interest/profession {c |}{res}        114        6.96       84.68
     {txt}Religion, morality, and philosophy {c |}{res}         80        4.88       89.56
           {txt}Romantic relationship/status {c |}{res}         51        3.11       92.67
                     {txt}Sexual orientation {c |}{res}          8        0.49       93.16
                    {txt}Socioeconomic class {c |}{res}         20        1.22       94.38
{txt}Specific work of non-religious art or a {c |}{res}          6        0.37       94.75
{txt}Student (e.g. Cornell, major, year in s {c |}{res}         86        5.25      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,638      100.00
{txt}
{com}. tab classification5_2

                      {txt}Classification5_2 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}          1       12.50       12.50
   {txt}Non-family non-romantic relationship {c |}{res}          1       12.50       25.00
{txt}Non-professional interest/dislike/activ {c |}{res}          2       25.00       50.00
        {txt}Non-spousal family relationship {c |}{res}          1       12.50       62.50
                       {txt}Physical feature {c |}{res}          1       12.50       75.00
       {txt}Professional interest/profession {c |}{res}          2       25.00      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}          8      100.00
{txt}
{com}. tab classification5_3
{txt}no observations

{com}. 
. ***RESULTS***
. 
. *RELIGION
. generate religion = 0
{txt}
{com}. replace religion = 1 if classification1_1 == "Religion, morality, and philosophy"
{txt}(168 real changes made)

{com}. replace religion = 1 if classification1_2 == "Religion, morality, and philosophy"
{txt}(2 real changes made)

{com}. replace religion = 1 if classification2_1 == "Religion, morality, and philosophy" 
{txt}(96 real changes made)

{com}. replace religion = 1 if classification2_2 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification2_3 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification3_1 == "Religion, morality, and philosophy" 
{txt}(97 real changes made)

{com}. replace religion = 1 if classification3_2 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification3_3 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification4_1 == "Religion, morality, and philosophy" 
{txt}(62 real changes made)

{com}. replace religion = 1 if classification4_2 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification4_3 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification5_1 == "Religion, morality, and philosophy" 
{txt}(70 real changes made)

{com}. replace religion = 1 if classification5_2 == "Religion, morality, and philosophy"
{txt}(0 real changes made)

{com}. 
. *by religion
. *q19 asks about religion
. *1 = christian-protestant
. *2 = christian-catholic
. *3 = christian other
. *4 = jewish
. *5 = muslim
. *6 = buddhist
. *7 = hindu
. *8 = agnostic
. *9 = atheist
. *10 = other
. rename q19 relig
{txt}
{com}. 
. 
. 
. *Panel A: All
. count if treatR == 0 //903
{res}  903
{txt}
{com}. count if treatR == 1 // 895
{res}  895
{txt}
{com}. 
. count if religion == 1 & treatR == 0 //227
{res}  227
{txt}
{com}. count if religion == 1 & treatR == 1 //268
{res}  268
{txt}
{com}. 
. di 227/903
{res}.25138427
{txt}
{com}. di 268/895
{res}.29944134
{txt}
{com}. 
. prtesti 903 .251 895 .299

{txt}Two-sample test of proportion                      {res}x{txt}: Number of obs = {res}     903
                                                   y{txt}: Number of obs = {res}     895
{txt}{hline 13}{c TT}{hline 64}
    Variable {c |}{col 22}Mean{col 29}Std. Err.{col 44}z{col 49}P>|z|{col 59}[95% Conf. Interval]
{hline 13}{c +}{hline 64}
{col 12}x{col 14}{c |}{res}{col 17}     .251{col 28} .0144289{col 58} .2227198{col 70} .2792802
           {txt}y {c |}{res}{col 17}     .299{col 28} .0153032{col 58} .2690062{col 70} .3289938
{txt}{hline 13}{c +}{hline 64}
        diff {c |}{res}{col 17}    -.048{col 28} .0210329{col 58}-.0892237{col 70}-.0067763
{txt}{col 14}{c |}{col 17}under Ho:{res}{col 28} .0210583{col 38}   -2.28{col 49}0.023
{txt}{hline 13}{c BT}{hline 64}
        diff = prop({res}x{txt}) - prop({res}y{txt})                                  z = {res} -2.2794
{txt}    Ho: diff = 0

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(Z < z) = {res}0.0113         {txt}Pr(|Z| < |z|) = {res}0.0226          {txt}Pr(Z > z) = {res}0.9887
{txt}
{com}. 
. *drop those who aren't protestant in the other christian category
. replace relig = "." if relig == "3" & q20 == "Christian-Orthodox"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "my business"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "orthodoxy"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "LDS/Mormon"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness :)"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Orthodox"
{txt}(2 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "I don't affiliate with any church"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness"
{txt}(4 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "I see myself as a Christian however I draw spiritual inspiration from many religious traditions"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Unity School of Christianity"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Greek Orthodox"
{txt}(3 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Spiritual"
{txt}(2 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "independent"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "none"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "unity/new age"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "afro-christian called UMBANDA"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "no group or religion"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "LDS"
{txt}(3 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Christian nature lover"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Believer but not praticing"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Spirtulist"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Greek Orthodox"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Kardecist Spiritism"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "latter-day saint (Mormon)"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Coptic, Orthodox"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "I believe in God, and I pray but I don't follow any kind of organized church, nor do I profess my beliefs."
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Greek Orthodox"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Orthdox"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "lds"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Messianic Judiasm"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "I am Orthodox Christian"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Coptic Orthodox Christian"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "not very religious"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "latter day saints"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "LDS"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Orthodox"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Latter Day Saint"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "I love jesus and god but religion is a scam and has not contributed anything to humanity."
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "LDS"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witnesses"
{txt}(2 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witnesses"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "The Church of Jesus Christ of Latter-day Saints"
{txt}(1 real change made)

{com}. 
. *Panel A: Protestant
. count if relig == "3" & treatR == 0 //83
{res}   83
{txt}
{com}. count if relig == "3" & treatR == 1 //93
{res}   93
{txt}
{com}. count if relig == "1" & treatR == 0 //156
{res}  156
{txt}
{com}. count if relig == "1" & treatR == 1 //178
{res}  178
{txt}
{com}. 
. count if religion == 1 & relig == "3" & treatR == 0 //27
{res}   27
{txt}
{com}. count if religion == 1 & relig == "3" & treatR == 1 //40
{res}   40
{txt}
{com}. count if religion == 1 & relig == "1" & treatR == 0 //71
{res}   71
{txt}
{com}. count if religion == 1 & relig == "1" & treatR == 1 //89
{res}   89
{txt}
{com}. 
. di (27+71)/(83+156) //98,239, =.410
{res}.41004184
{txt}
{com}. di (40+89)/(93+178) //129,271, =.476
{res}.47601476
{txt}
{com}. 
. prtesti 239 .410 271 .476

{txt}Two-sample test of proportion                      {res}x{txt}: Number of obs = {res}     239
                                                   y{txt}: Number of obs = {res}     271
{txt}{hline 13}{c TT}{hline 64}
    Variable {c |}{col 22}Mean{col 29}Std. Err.{col 44}z{col 49}P>|z|{col 59}[95% Conf. Interval]
{hline 13}{c +}{hline 64}
{col 12}x{col 14}{c |}{res}{col 17}      .41{col 28} .0318141{col 58} .3476456{col 70} .4723544
           {txt}y {c |}{res}{col 17}     .476{col 28} .0303378{col 58}  .416539{col 70}  .535461
{txt}{hline 13}{c +}{hline 64}
        diff {c |}{res}{col 17}    -.066{col 28} .0439604{col 58}-.1521608{col 70} .0201608
{txt}{col 14}{c |}{col 17}under Ho:{res}{col 28} .0440996{col 38}   -1.50{col 49}0.134
{txt}{hline 13}{c BT}{hline 64}
        diff = prop({res}x{txt}) - prop({res}y{txt})                                  z = {res} -1.4966
{txt}    Ho: diff = 0

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(Z < z) = {res}0.0672         {txt}Pr(|Z| < |z|) = {res}0.1345          {txt}Pr(Z > z) = {res}0.9328
{txt}
{com}. di 239 +271
{res}510
{txt}
{com}. 
. *Panel A: Catholic
. count if relig == "2" & treatR == 0 //176
{res}  176
{txt}
{com}. count if relig == "2" & treatR == 1 //138
{res}  138
{txt}
{com}. di 176 + 138
{res}314
{txt}
{com}. 
. count if religion == 1 & relig == "2" & treatR == 0 //46
{res}   46
{txt}
{com}. count if religion == 1 & relig == "2" & treatR == 1 //46
{res}   46
{txt}
{com}. 
. di 46/176 //.261
{res}.26136364
{txt}
{com}. di 46/138 //.333
{res}.33333333
{txt}
{com}. 
. prtesti 176 .261 138 .333

{txt}Two-sample test of proportion                      {res}x{txt}: Number of obs = {res}     176
                                                   y{txt}: Number of obs = {res}     138
{txt}{hline 13}{c TT}{hline 64}
    Variable {c |}{col 22}Mean{col 29}Std. Err.{col 44}z{col 49}P>|z|{col 59}[95% Conf. Interval]
{hline 13}{c +}{hline 64}
{col 12}x{col 14}{c |}{res}{col 17}     .261{col 28} .0331044{col 58} .1961165{col 70} .3258835
           {txt}y {c |}{res}{col 17}     .333{col 28} .0401186{col 58}  .254369{col 70}  .411631
{txt}{hline 13}{c +}{hline 64}
        diff {c |}{res}{col 17}    -.072{col 28} .0520135{col 58}-.1739446{col 70} .0299446
{txt}{col 14}{c |}{col 17}under Ho:{res}{col 28} .0517318{col 38}   -1.39{col 49}0.164
{txt}{hline 13}{c BT}{hline 64}
        diff = prop({res}x{txt}) - prop({res}y{txt})                                  z = {res} -1.3918
{txt}    Ho: diff = 0

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(Z < z) = {res}0.0820         {txt}Pr(|Z| < |z|) = {res}0.1640          {txt}Pr(Z > z) = {res}0.9180
{txt}
{com}. 
. *Panel A: Jewish
. count if relig == "4" & treatR == 0 //43
{res}   43
{txt}
{com}. count if relig == "4" & treatR == 1 //46
{res}   46
{txt}
{com}. di 43 + 46
{res}89
{txt}
{com}. 
. count if religion == 1 & relig == "4" & treatR == 0 //29
{res}   29
{txt}
{com}. count if religion == 1 & relig == "4" & treatR == 1 //27
{res}   27
{txt}
{com}. 
. di 29/43 //.674
{res}.6744186
{txt}
{com}. di 27/46 //.587
{res}.58695652
{txt}
{com}. 
. prtesti 43 .674 46 .587

{txt}Two-sample test of proportion                      {res}x{txt}: Number of obs = {res}      43
                                                   y{txt}: Number of obs = {res}      46
{txt}{hline 13}{c TT}{hline 64}
    Variable {c |}{col 22}Mean{col 29}Std. Err.{col 44}z{col 49}P>|z|{col 59}[95% Conf. Interval]
{hline 13}{c +}{hline 64}
{col 12}x{col 14}{c |}{res}{col 17}     .674{col 28} .0714833{col 58} .5338953{col 70} .8141047
           {txt}y {c |}{res}{col 17}     .587{col 28} .0725964{col 58} .4447136{col 70} .7292864
{txt}{hline 13}{c +}{hline 64}
        diff {c |}{res}{col 17}     .087{col 28} .1018828{col 58}-.1126866{col 70} .2866866
{txt}{col 14}{c |}{col 17}under Ho:{res}{col 28} .1024675{col 38}    0.85{col 49}0.396
{txt}{hline 13}{c BT}{hline 64}
        diff = prop({res}x{txt}) - prop({res}y{txt})                                  z = {res}  0.8490
{txt}    Ho: diff = 0

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(Z < z) = {res}0.8021         {txt}Pr(|Z| < |z|) = {res}0.3959          {txt}Pr(Z > z) = {res}0.1979
{txt}
{com}. 
. *Panel A: Agnostic/Atheist
. count if relig == "8" & treatR == 0 //150
{res}  150
{txt}
{com}. count if relig == "8" & treatR == 1 //126
{res}  126
{txt}
{com}. count if relig == "9" & treatR == 0 //150
{res}  150
{txt}
{com}. count if relig == "9" & treatR == 1 //144
{res}  144
{txt}
{com}. di 150+126+150+144
{res}570
{txt}
{com}. 
. count if religion == 1 & relig == "8" & treatR == 0 //10
{res}   10
{txt}
{com}. count if religion == 1 & relig == "8" & treatR == 1 //10
{res}   10
{txt}
{com}. count if religion == 1 & relig == "9" & treatR == 0 //20
{res}   20
{txt}
{com}. count if religion == 1 & relig == "9" & treatR == 1 //20
{res}   20
{txt}
{com}. 
. di (10+20)/(150+150) //30,300, =.1
{res}.1
{txt}
{com}. di (10+20)/(126+144) //30,270, =.111
{res}.11111111
{txt}
{com}. 
. prtesti 300 .1 270 .111

{txt}Two-sample test of proportion                      {res}x{txt}: Number of obs = {res}     300
                                                   y{txt}: Number of obs = {res}     270
{txt}{hline 13}{c TT}{hline 64}
    Variable {c |}{col 22}Mean{col 29}Std. Err.{col 44}z{col 49}P>|z|{col 59}[95% Conf. Interval]
{hline 13}{c +}{hline 64}
{col 12}x{col 14}{c |}{res}{col 17}       .1{col 28} .0173205{col 58} .0660524{col 70} .1339476
           {txt}y {c |}{res}{col 17}     .111{col 28} .0191175{col 58} .0735304{col 70} .1484696
{txt}{hline 13}{c +}{hline 64}
        diff {c |}{res}{col 17}    -.011{col 28} .0257969{col 58}-.0615609{col 70} .0395609
{txt}{col 14}{c |}{col 17}under Ho:{res}{col 28} .0257386{col 38}   -0.43{col 49}0.669
{txt}{hline 13}{c BT}{hline 64}
        diff = prop({res}x{txt}) - prop({res}y{txt})                                  z = {res} -0.4274
{txt}    Ho: diff = 0

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(Z < z) = {res}0.3346         {txt}Pr(|Z| < |z|) = {res}0.6691          {txt}Pr(Z > z) = {res}0.6654
{txt}
{com}. 
. *Now examine only Yale eLab sample
. 
. clear
{txt}
{com}. set more off
{txt}
{com}. insheet using "/Users/gwf25/Dropbox/research/religion/final code/OnlineQuests.txt"
{txt}(69 vars, 2006 obs)

{com}. drop if v1 == "ResponseID"
{txt}(1 observation deleted)

{com}. gen treatR = .
{txt}(2005 missing values generated)

{com}. replace treatR = 1 if q5 ~= ""
{txt}(935 real changes made)

{com}. replace treatR = 0 if q7 ~= ""
{txt}(943 real changes made)

{com}. tab treatR

     {txt}treatR {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        943       50.21       50.21
{txt}          1 {c |}{res}        935       49.79      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,878      100.00
{txt}
{com}. 
. drop if classification1_1 == "" & id ~= 215
{txt}(202 observations deleted)

{com}. 
. drop if treatR == .
{txt}(5 observations deleted)

{com}. count if treatR == 1
{res}  895
{txt}
{com}. count if treatR == 0
{res}  903
{txt}
{com}. 
. 
. tab classification1_1

                      {txt}Classification1_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         29        1.61        1.61
{txt}Arts in general (visual art, music, the {c |}{res}         63        3.51        5.12
                       {txt}Athletics/sports {c |}{res}         44        2.45        7.57
 {txt}Birthplace/hometown/place of residence {c |}{res}         12        0.67        8.24
                       {txt}Environmentalism {c |}{res}          3        0.17        8.40
{txt}Food and drink (excluding beer and liqu {c |}{res}          5        0.28        8.68
                                 {txt}Gender {c |}{res}        187       10.41       19.09
                            {txt}Human being {c |}{res}         50        2.78       21.87
                         {txt}Leisure travel {c |}{res}          1        0.06       21.93
       {txt}Mental feature/personality trait {c |}{res}         88        4.90       26.82
    {txt}Nationality/ethnicity/race/language {c |}{res}        137        7.62       34.45
   {txt}Non-family non-romantic relationship {c |}{res}         63        3.51       37.95
{txt}Non-professional interest/dislike/activ {c |}{res}         67        3.73       41.68
        {txt}Non-spousal family relationship {c |}{res}        493       27.43       69.12
                                  {txt}Other {c |}{res}         23        1.28       70.40
{txt}Partying/nightclubs/bars (including bee {c |}{res}          1        0.06       70.45
                       {txt}Physical feature {c |}{res}          6        0.33       70.78
                  {txt}Political Orientation {c |}{res}          1        0.06       70.84
                  {txt}Political orientation {c |}{res}         16        0.89       71.73
           {txt}Pro-social personality trait {c |}{res}         70        3.90       75.63
       {txt}Professional interest/profession {c |}{res}         88        4.90       80.52
     {txt}Religion, morality, and philosophy {c |}{res}        168        9.35       89.87
           {txt}Romantic relationship/status {c |}{res}         33        1.84       91.71
                     {txt}Sexual orientation {c |}{res}         26        1.45       93.16
                    {txt}Socioeconomic class {c |}{res}         11        0.61       93.77
{txt}Specific work of non-religious art or a {c |}{res}          4        0.22       93.99
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        108        6.01      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,797      100.00
{txt}
{com}. replace classification1_1 = "Political orientation" if classification1_1 == "Political Orientation"
{txt}(1 real change made)

{com}. tab classification1_2

                      {txt}Classification1_2 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
    Nationality/ethnicity/race/language {c |}{res}          2       20.00       20.00
       {txt}Professional interest/profession {c |}{res}          2       20.00       40.00
     {txt}Religion, morality, and philosophy {c |}{res}          2       20.00       60.00
           {txt}Romantic relationship/status {c |}{res}          2       20.00       80.00
                    {txt}Socioeconomic class {c |}{res}          1       10.00       90.00
{txt}Student (e.g. Cornell, major, year in s {c |}{res}          1       10.00      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}         10      100.00
{txt}
{com}. tab classification1_3
{txt}no observations

{com}. 
. tab classification2_1

                      {txt}Classification2_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         38        2.15        2.15
{txt}Arts in general (visual art, music, the {c |}{res}         80        4.52        6.67
                       {txt}Athletics/sports {c |}{res}         48        2.71        9.38
 {txt}Birthplace/hometown/place of residence {c |}{res}         24        1.36       10.74
                       {txt}Environmentalism {c |}{res}          6        0.34       11.08
{txt}Food and drink (excluding beer and liqu {c |}{res}          3        0.17       11.25
                                 {txt}Gender {c |}{res}        147        8.31       19.56
                            {txt}Human being {c |}{res}         10        0.57       20.12
                         {txt}Leisure travel {c |}{res}          4        0.23       20.35
       {txt}Mental feature/personality trait {c |}{res}        125        7.07       27.42
    {txt}Nationality/ethnicity/race/language {c |}{res}        165        9.33       36.74
   {txt}Non-family non-romantic relationship {c |}{res}        244       13.79       50.54
{txt}Non-professional interest/dislike/activ {c |}{res}        100        5.65       56.19
        {txt}Non-spousal family relationship {c |}{res}        199       11.25       67.44
                                  {txt}Other {c |}{res}         17        0.96       68.40
{txt}Partying/nightclubs/bars (including bee {c |}{res}          4        0.23       68.63
                       {txt}Physical feature {c |}{res}          5        0.28       68.91
                  {txt}Political orientation {c |}{res}         34        1.92       70.83
           {txt}Pro-social personality trait {c |}{res}         60        3.39       74.22
       {txt}Professional interest/profession {c |}{res}        137        7.74       81.97
     {txt}Religion, morality, and philosophy {c |}{res}        111        6.27       88.24
           {txt}Romantic relationship/status {c |}{res}         73        4.13       92.37
                     {txt}Sexual orientation {c |}{res}         21        1.19       93.56
                    {txt}Socioeconomic class {c |}{res}          8        0.45       94.01
{txt}Specific work of non-religious art or a {c |}{res}          3        0.17       94.18
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        103        5.82      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,769      100.00
{txt}
{com}. tab classification2_2

                   {txt}Classification2_2 {c |}      Freq.     Percent        Cum.
{hline 37}{c +}{hline 35}
                              Gender {c |}{res}          1        9.09        9.09
 {txt}Nationality/ethnicity/race/language {c |}{res}          2       18.18       27.27
{txt}Non-family non-romantic relationship {c |}{res}          1        9.09       36.36
     {txt}Non-spousal family relationship {c |}{res}          2       18.18       54.55
    {txt}Professional interest/profession {c |}{res}          2       18.18       72.73
        {txt}Romantic relationship/status {c |}{res}          3       27.27      100.00
{txt}{hline 37}{c +}{hline 35}
                               Total {c |}{res}         11      100.00
{txt}
{com}. tab classification2_3

              {txt}Classification2_3 {c |}      Freq.     Percent        Cum.
{hline 32}{c +}{hline 35}
                         Gender {c |}{res}          1       50.00       50.00
{txt}Non-spousal family relationship {c |}{res}          1       50.00      100.00
{txt}{hline 32}{c +}{hline 35}
                          Total {c |}{res}          2      100.00
{txt}
{com}. 
. tab classification3_1

                      {txt}Classification3_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         48        2.77        2.77
{txt}Arts in general (visual art, music, the {c |}{res}         78        4.50        7.27
                       {txt}Athletics/sports {c |}{res}         60        3.46       10.73
 {txt}Birthplace/hometown/place of residence {c |}{res}         44        2.54       13.26
                       {txt}Clothing/fashion {c |}{res}          1        0.06       13.32
                       {txt}Environmentalism {c |}{res}          7        0.40       13.73
{txt}Food and drink (excluding beer and liqu {c |}{res}         15        0.87       14.59
                                 {txt}Gender {c |}{res}         94        5.42       20.01
                            {txt}Human being {c |}{res}          7        0.40       20.42
                         {txt}Leisure travel {c |}{res}          2        0.12       20.53
       {txt}Mental feature/personality trait {c |}{res}        107        6.17       26.70
    {txt}Nationality/ethnicity/race/language {c |}{res}        133        7.67       34.37
   {txt}Non-family non-romantic relationship {c |}{res}        181       10.44       44.81
{txt}Non-professional interest/dislike/activ {c |}{res}        118        6.81       51.61
        {txt}Non-spousal family relationship {c |}{res}        187       10.78       62.40
                                  {txt}Other {c |}{res}         12        0.69       63.09
{txt}Partying/nightclubs/bars (including bee {c |}{res}          6        0.35       63.44
                       {txt}Physical feature {c |}{res}         13        0.75       64.19
                  {txt}Political orientation {c |}{res}         51        2.94       67.13
           {txt}Pro-social personality trait {c |}{res}         93        5.36       72.49
       {txt}Professional interest/profession {c |}{res}        145        8.36       80.85
     {txt}Religion, morality, and philosophy {c |}{res}        109        6.29       87.14
           {txt}Romantic relationship/status {c |}{res}         56        3.23       90.37
                     {txt}Sexual orientation {c |}{res}         21        1.21       91.58
                    {txt}Socioeconomic class {c |}{res}         14        0.81       92.39
{txt}Specific work of non-religious art or a {c |}{res}          7        0.40       92.79
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        124        7.15       99.94
                     {txt}sexual orientation {c |}{res}          1        0.06      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,734      100.00
{txt}
{com}. replace classification3_1 = "Sexual orientation" if classification3_1 == "sexual orientation"
{txt}(1 real change made)

{com}. tab classification3_2

                      {txt}Classification3_2 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
Arts in general (visual art, music, the {c |}{res}          1       14.29       14.29
 {txt}Birthplace/hometown/place of residence {c |}{res}          1       14.29       28.57
       {txt}Professional interest/profession {c |}{res}          2       28.57       57.14
           {txt}Romantic relationship/status {c |}{res}          2       28.57       85.71
                     {txt}Sexual orientation {c |}{res}          1       14.29      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}          7      100.00
{txt}
{com}. tab classification3_3

                      {txt}Classification3_3 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
        Non-spousal family relationship {c |}{res}          1       50.00       50.00
{txt}Student (e.g. Cornell, major, year in s {c |}{res}          1       50.00      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}          2      100.00
{txt}
{com}. 
. tab classification4_1

                      {txt}Classification4_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         43        2.56        2.56
{txt}Arts in general (visual art, music, the {c |}{res}         87        5.18        7.75
                       {txt}Athletics/sports {c |}{res}         89        5.30       13.05
 {txt}Birthplace/hometown/place of residence {c |}{res}         67        3.99       17.04
                       {txt}Clothing/fashion {c |}{res}          3        0.18       17.22
                       {txt}Environmentalism {c |}{res}          8        0.48       17.70
{txt}Food and drink (excluding beer and liqu {c |}{res}         13        0.77       18.47
                                 {txt}Gender {c |}{res}         59        3.52       21.99
                            {txt}Human being {c |}{res}          7        0.42       22.41
                         {txt}Leisure travel {c |}{res}         12        0.72       23.12
       {txt}Mental feature/personality trait {c |}{res}        141        8.40       31.53
    {txt}Nationality/ethnicity/race/language {c |}{res}        115        6.85       38.38
   {txt}Non-family non-romantic relationship {c |}{res}        164        9.77       48.15
{txt}Non-professional interest/dislike/activ {c |}{res}        157        9.36       57.51
        {txt}Non-spousal family relationship {c |}{res}        139        8.28       65.79
                                  {txt}Other {c |}{res}         11        0.66       66.45
{txt}Partying/nightclubs/bars (including bee {c |}{res}          4        0.24       66.69
                       {txt}Physical feature {c |}{res}         25        1.49       68.18
                  {txt}Political orientation {c |}{res}         44        2.62       70.80
           {txt}Pro-social personality trait {c |}{res}         76        4.53       75.33
       {txt}Professional interest/profession {c |}{res}        140        8.34       83.67
     {txt}Religion, morality, and philosophy {c |}{res}         73        4.35       88.02
           {txt}Romantic relationship/status {c |}{res}         45        2.68       90.70
                     {txt}Sexual orientation {c |}{res}          8        0.48       91.18
                    {txt}Socioeconomic class {c |}{res}         20        1.19       92.37
{txt}Specific work of non-religious art or a {c |}{res}          5        0.30       92.67
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        122        7.27       99.94
                                  {txt}other {c |}{res}          1        0.06      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,678      100.00
{txt}
{com}. replace classification4_1 = "Other" if classification4_1 == "other"
{txt}(1 real change made)

{com}. tab classification4_2

                      {txt}Classification4_2 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}          1       10.00       10.00
                       {txt}Athletics/sports {c |}{res}          1       10.00       20.00
 {txt}Birthplace/hometown/place of residence {c |}{res}          2       20.00       40.00
                         {txt}Leisure travel {c |}{res}          1       10.00       50.00
   {txt}Non-family non-romantic relationship {c |}{res}          1       10.00       60.00
{txt}Non-professional interest/dislike/activ {c |}{res}          1       10.00       70.00
        {txt}Non-spousal family relationship {c |}{res}          1       10.00       80.00
                       {txt}Physical feature {c |}{res}          1       10.00       90.00
       {txt}Professional interest/profession {c |}{res}          1       10.00      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}         10      100.00
{txt}
{com}. tab classification4_3

                   {txt}Classification4_3 {c |}      Freq.     Percent        Cum.
{hline 37}{c +}{hline 35}
Non-family non-romantic relationship {c |}{res}          1      100.00      100.00
{txt}{hline 37}{c +}{hline 35}
                               Total {c |}{res}          1      100.00
{txt}
{com}. 
. tab classification5_1

                      {txt}Classification5_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         31        1.89        1.89
{txt}Arts in general (visual art, music, the {c |}{res}         88        5.37        7.26
                       {txt}Athletics/sports {c |}{res}         86        5.25       12.52
 {txt}Birthplace/hometown/place of residence {c |}{res}         71        4.33       16.85
                       {txt}Clothing/fashion {c |}{res}          5        0.31       17.16
                       {txt}Environmentalism {c |}{res}         10        0.61       17.77
{txt}Food and drink (excluding beer and liqu {c |}{res}         20        1.22       18.99
                                 {txt}Gender {c |}{res}         46        2.81       21.79
                            {txt}Human being {c |}{res}         20        1.22       23.02
                         {txt}Leisure travel {c |}{res}          9        0.55       23.57
       {txt}Mental feature/personality trait {c |}{res}        182       11.11       34.68
    {txt}Nationality/ethnicity/race/language {c |}{res}        123        7.51       42.19
   {txt}Non-family non-romantic relationship {c |}{res}        130        7.94       50.12
{txt}Non-professional interest/dislike/activ {c |}{res}        186       11.36       61.48
        {txt}Non-spousal family relationship {c |}{res}         99        6.04       67.52
                                  {txt}Other {c |}{res}         18        1.10       68.62
{txt}Partying/nightclubs/bars (including bee {c |}{res}          5        0.31       68.93
                       {txt}Physical feature {c |}{res}         21        1.28       70.21
                  {txt}Political orientation {c |}{res}         48        2.93       73.14
           {txt}Pro-social personality trait {c |}{res}         75        4.58       77.72
       {txt}Professional interest/profession {c |}{res}        114        6.96       84.68
     {txt}Religion, morality, and philosophy {c |}{res}         80        4.88       89.56
           {txt}Romantic relationship/status {c |}{res}         51        3.11       92.67
                     {txt}Sexual orientation {c |}{res}          8        0.49       93.16
                    {txt}Socioeconomic class {c |}{res}         20        1.22       94.38
{txt}Specific work of non-religious art or a {c |}{res}          6        0.37       94.75
{txt}Student (e.g. Cornell, major, year in s {c |}{res}         86        5.25      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,638      100.00
{txt}
{com}. tab classification5_2

                      {txt}Classification5_2 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}          1       12.50       12.50
   {txt}Non-family non-romantic relationship {c |}{res}          1       12.50       25.00
{txt}Non-professional interest/dislike/activ {c |}{res}          2       25.00       50.00
        {txt}Non-spousal family relationship {c |}{res}          1       12.50       62.50
                       {txt}Physical feature {c |}{res}          1       12.50       75.00
       {txt}Professional interest/profession {c |}{res}          2       25.00      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}          8      100.00
{txt}
{com}. tab classification5_3
{txt}no observations

{com}. 
. ***RESULTS***
. 
. *RELIGION
. generate religion = 0
{txt}
{com}. replace religion = 1 if classification1_1 == "Religion, morality, and philosophy"
{txt}(168 real changes made)

{com}. replace religion = 1 if classification1_2 == "Religion, morality, and philosophy"
{txt}(2 real changes made)

{com}. replace religion = 1 if classification2_1 == "Religion, morality, and philosophy" 
{txt}(96 real changes made)

{com}. replace religion = 1 if classification2_2 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification2_3 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification3_1 == "Religion, morality, and philosophy" 
{txt}(97 real changes made)

{com}. replace religion = 1 if classification3_2 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification3_3 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification4_1 == "Religion, morality, and philosophy" 
{txt}(62 real changes made)

{com}. replace religion = 1 if classification4_2 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification4_3 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification5_1 == "Religion, morality, and philosophy" 
{txt}(70 real changes made)

{com}. replace religion = 1 if classification5_2 == "Religion, morality, and philosophy"
{txt}(0 real changes made)

{com}. 
. *by religion
. *q19 asks about religion
. *1 = christian-protestant
. *2 = christian-catholic
. *3 = christian other
. *4 = jewish
. *5 = muslim
. *6 = buddhist
. *7 = hindu
. *8 = agnostic
. *9 = atheist
. *10 = other
. rename q19 relig
{txt}
{com}. 
. gen id = _n
{txt}
{com}. drop if id > 1192
{txt}(606 observations deleted)

{com}. 
. *Panel B: All
. count if treatR == 0 //603
{res}  603
{txt}
{com}. count if treatR == 1 // 589
{res}  589
{txt}
{com}. di 603+589
{res}1192
{txt}
{com}. 
. count if religion == 1 & treatR == 0 //147
{res}  147
{txt}
{com}. count if religion == 1 & treatR == 1 //184
{res}  184
{txt}
{com}. 
. di 147/603 //.244
{res}.24378109
{txt}
{com}. di 184/589 //.312
{res}.31239389
{txt}
{com}. 
. prtesti 603 .244 589 .312

{txt}Two-sample test of proportion                      {res}x{txt}: Number of obs = {res}     603
                                                   y{txt}: Number of obs = {res}     589
{txt}{hline 13}{c TT}{hline 64}
    Variable {c |}{col 22}Mean{col 29}Std. Err.{col 44}z{col 49}P>|z|{col 59}[95% Conf. Interval]
{hline 13}{c +}{hline 64}
{col 12}x{col 14}{c |}{res}{col 17}     .244{col 28} .0174903{col 58} .2097197{col 70} .2782803
           {txt}y {c |}{res}{col 17}     .312{col 28} .0190903{col 58} .2745836{col 70} .3494164
{txt}{hline 13}{c +}{hline 64}
        diff {c |}{res}{col 17}    -.068{col 28} .0258912{col 58}-.1187457{col 70}-.0172543
{txt}{col 14}{c |}{col 17}under Ho:{res}{col 28}  .025943{col 38}   -2.62{col 49}0.009
{txt}{hline 13}{c BT}{hline 64}
        diff = prop({res}x{txt}) - prop({res}y{txt})                                  z = {res} -2.6211
{txt}    Ho: diff = 0

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(Z < z) = {res}0.0044         {txt}Pr(|Z| < |z|) = {res}0.0088          {txt}Pr(Z > z) = {res}0.9956
{txt}
{com}. 
. *drop those who aren't protestant in the other christian category
. replace relig = "." if relig == "3" & q20 == "Christian-Orthodox"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "my business"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "orthodoxy"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "LDS/Mormon"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness :)"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Orthodox"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "I don't affiliate with any church"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness"
{txt}(2 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "I see myself as a Christian however I draw spiritual inspiration from many religious traditions"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Unity School of Christianity"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Greek Orthodox"
{txt}(3 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Spiritual"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "independent"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "none"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "unity/new age"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "afro-christian called UMBANDA"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "no group or religion"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "LDS"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Christian nature lover"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Believer but not praticing"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Spirtulist"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Greek Orthodox"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Kardecist Spiritism"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "latter-day saint (Mormon)"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Coptic, Orthodox"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "I believe in God, and I pray but I don't follow any kind of organized church, nor do I profess my beliefs."
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Greek Orthodox"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Orthdox"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "lds"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Messianic Judiasm"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "I am Orthodox Christian"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Coptic Orthodox Christian"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "not very religious"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "latter day saints"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "LDS"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Orthodox"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Latter Day Saint"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "I love jesus and god but religion is a scam and has not contributed anything to humanity."
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "LDS"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witnesses"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witnesses"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "The Church of Jesus Christ of Latter-day Saints"
{txt}(0 real changes made)

{com}. 
. *Panel A: Protestant
. count if relig == "3" & treatR == 0 //58
{res}   58
{txt}
{com}. count if relig == "3" & treatR == 1 //67
{res}   67
{txt}
{com}. count if relig == "1" & treatR == 0 //107
{res}  107
{txt}
{com}. count if relig == "1" & treatR == 1 //119
{res}  119
{txt}
{com}. di 58+67+107+119
{res}351
{txt}
{com}. 
. count if religion == 1 & relig == "3" & treatR == 0 //17
{res}   17
{txt}
{com}. count if religion == 1 & relig == "3" & treatR == 1 //32
{res}   32
{txt}
{com}. count if religion == 1 & relig == "1" & treatR == 0 //49
{res}   49
{txt}
{com}. count if religion == 1 & relig == "1" & treatR == 1 //58
{res}   58
{txt}
{com}. 
. di (17+49)/(58+107) //66,165, =.4
{res}.4
{txt}
{com}. di (32+58)/(67+119) //90,186, =.484
{res}.48387097
{txt}
{com}. 
. prtesti 165 .4 186 .484

{txt}Two-sample test of proportion                      {res}x{txt}: Number of obs = {res}     165
                                                   y{txt}: Number of obs = {res}     186
{txt}{hline 13}{c TT}{hline 64}
    Variable {c |}{col 22}Mean{col 29}Std. Err.{col 44}z{col 49}P>|z|{col 59}[95% Conf. Interval]
{hline 13}{c +}{hline 64}
{col 12}x{col 14}{c |}{res}{col 17}       .4{col 28} .0381385{col 58} .3252499{col 70} .4747501
           {txt}y {c |}{res}{col 17}     .484{col 28}  .036643{col 58}  .412181{col 70}  .555819
{txt}{hline 13}{c +}{hline 64}
        diff {c |}{res}{col 17}    -.084{col 28} .0528891{col 58}-.1876607{col 70} .0196607
{txt}{col 14}{c |}{col 17}under Ho:{res}{col 28} .0531416{col 38}   -1.58{col 49}0.114
{txt}{hline 13}{c BT}{hline 64}
        diff = prop({res}x{txt}) - prop({res}y{txt})                                  z = {res} -1.5807
{txt}    Ho: diff = 0

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(Z < z) = {res}0.0570         {txt}Pr(|Z| < |z|) = {res}0.1140          {txt}Pr(Z > z) = {res}0.9430
{txt}
{com}. 
. *Panel B: Catholic
. count if relig == "2" & treatR == 0 //126
{res}  126
{txt}
{com}. count if relig == "2" & treatR == 1 //97
{res}   97
{txt}
{com}. di 126 + 97
{res}223
{txt}
{com}. 
. count if religion == 1 & relig == "2" & treatR == 0 //35
{res}   35
{txt}
{com}. count if religion == 1 & relig == "2" & treatR == 1 //35
{res}   35
{txt}
{com}. 
. di 35/126 //.278
{res}.27777778
{txt}
{com}. di 35/97 //.361
{res}.36082474
{txt}
{com}. prtesti 126 .278 97 .361

{txt}Two-sample test of proportion                      {res}x{txt}: Number of obs = {res}     126
                                                   y{txt}: Number of obs = {res}      97
{txt}{hline 13}{c TT}{hline 64}
    Variable {c |}{col 22}Mean{col 29}Std. Err.{col 44}z{col 49}P>|z|{col 59}[95% Conf. Interval]
{hline 13}{c +}{hline 64}
{col 12}x{col 14}{c |}{res}{col 17}     .278{col 28} .0399122{col 58} .1997735{col 70} .3562265
           {txt}y {c |}{res}{col 17}     .361{col 28} .0487661{col 58} .2654202{col 70} .4565798
{txt}{hline 13}{c +}{hline 64}
        diff {c |}{res}{col 17}    -.083{col 28} .0630168{col 58}-.2065107{col 70} .0405107
{txt}{col 14}{c |}{col 17}under Ho:{res}{col 28}  .062697{col 38}   -1.32{col 49}0.186
{txt}{hline 13}{c BT}{hline 64}
        diff = prop({res}x{txt}) - prop({res}y{txt})                                  z = {res} -1.3238
{txt}    Ho: diff = 0

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(Z < z) = {res}0.0928         {txt}Pr(|Z| < |z|) = {res}0.1856          {txt}Pr(Z > z) = {res}0.9072
{txt}
{com}. 
. *Panel B: Jewish
. count if relig == "4" & treatR == 0 //39
{res}   39
{txt}
{com}. count if relig == "4" & treatR == 1 //36
{res}   36
{txt}
{com}. di 39 + 36
{res}75
{txt}
{com}. 
. count if religion == 1 & relig == "4" & treatR == 0 //25
{res}   25
{txt}
{com}. count if religion == 1 & relig == "4" & treatR == 1 //22
{res}   22
{txt}
{com}. 
. di 25/39 //.641
{res}.64102564
{txt}
{com}. di 22/36 //.611
{res}.61111111
{txt}
{com}. 
. prtesti 39 .641 36 .611

{txt}Two-sample test of proportion                      {res}x{txt}: Number of obs = {res}      39
                                                   y{txt}: Number of obs = {res}      36
{txt}{hline 13}{c TT}{hline 64}
    Variable {c |}{col 22}Mean{col 29}Std. Err.{col 44}z{col 49}P>|z|{col 59}[95% Conf. Interval]
{hline 13}{c +}{hline 64}
{col 12}x{col 14}{c |}{res}{col 17}     .641{col 28} .0768146{col 58} .4904461{col 70} .7915539
           {txt}y {c |}{res}{col 17}     .611{col 28} .0812539{col 58} .4517453{col 70} .7702547
{txt}{hline 13}{c +}{hline 64}
        diff {c |}{res}{col 17}      .03{col 28} .1118154{col 58}-.1891541{col 70} .2491541
{txt}{col 14}{c |}{col 17}under Ho:{res}{col 28} .1117968{col 38}    0.27{col 49}0.788
{txt}{hline 13}{c BT}{hline 64}
        diff = prop({res}x{txt}) - prop({res}y{txt})                                  z = {res}  0.2683
{txt}    Ho: diff = 0

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(Z < z) = {res}0.6058         {txt}Pr(|Z| < |z|) = {res}0.7884          {txt}Pr(Z > z) = {res}0.3942
{txt}
{com}. 
. *Panel B: Agnostic/Atheist
. count if relig == "8" & treatR == 0 //93
{res}   93
{txt}
{com}. count if relig == "8" & treatR == 1 //73
{res}   73
{txt}
{com}. count if relig == "9" & treatR == 0 //75
{res}   75
{txt}
{com}. count if relig == "9" & treatR == 1 //77
{res}   77
{txt}
{com}. di 93+73+75+77
{res}318
{txt}
{com}. 
. count if religion == 1 & relig == "8" & treatR == 0 //3
{res}    3
{txt}
{com}. count if religion == 1 & relig == "8" & treatR == 1 //5
{res}    5
{txt}
{com}. count if religion == 1 & relig == "9" & treatR == 0 //3
{res}    3
{txt}
{com}. count if religion == 1 & relig == "9" & treatR == 1 //8
{res}    8
{txt}
{com}. 
. di (3+3)/(93+75) //6,168, =.036
{res}.03571429
{txt}
{com}. di (5+8)/(73+77) //13,150, =.087
{res}.08666667
{txt}
{com}. 
. prtesti 168 .036 150 .087

{txt}Two-sample test of proportion                      {res}x{txt}: Number of obs = {res}     168
                                                   y{txt}: Number of obs = {res}     150
{txt}{hline 13}{c TT}{hline 64}
    Variable {c |}{col 22}Mean{col 29}Std. Err.{col 44}z{col 49}P>|z|{col 59}[95% Conf. Interval]
{hline 13}{c +}{hline 64}
{col 12}x{col 14}{c |}{res}{col 17}     .036{col 28} .0143726{col 58} .0078302{col 70} .0641698
           {txt}y {c |}{res}{col 17}     .087{col 28} .0230117{col 58} .0418978{col 70} .1321022
{txt}{hline 13}{c +}{hline 64}
        diff {c |}{res}{col 17}    -.051{col 28} .0271314{col 58}-.1041765{col 70} .0021765
{txt}{col 14}{c |}{col 17}under Ho:{res}{col 28} .0266898{col 38}   -1.91{col 49}0.056
{txt}{hline 13}{c BT}{hline 64}
        diff = prop({res}x{txt}) - prop({res}y{txt})                                  z = {res} -1.9108
{txt}    Ho: diff = 0

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(Z < z) = {res}0.0280         {txt}Pr(|Z| < |z|) = {res}0.0560          {txt}Pr(Z > z) = {res}0.9720
{txt}
{com}. 
. 
. *Now examine only MTurk sample
. 
. clear
{txt}
{com}. set more off
{txt}
{com}. insheet using "/Users/gwf25/Dropbox/research/religion/final code/OnlineQuests.txt"
{txt}(69 vars, 2006 obs)

{com}. drop if v1 == "ResponseID"
{txt}(1 observation deleted)

{com}. gen treatR = .
{txt}(2005 missing values generated)

{com}. replace treatR = 1 if q5 ~= ""
{txt}(935 real changes made)

{com}. replace treatR = 0 if q7 ~= ""
{txt}(943 real changes made)

{com}. tab treatR

     {txt}treatR {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        943       50.21       50.21
{txt}          1 {c |}{res}        935       49.79      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,878      100.00
{txt}
{com}. 
. drop if classification1_1 == "" & id ~= 215
{txt}(202 observations deleted)

{com}. 
. drop if treatR == .
{txt}(5 observations deleted)

{com}. count if treatR == 1
{res}  895
{txt}
{com}. count if treatR == 0
{res}  903
{txt}
{com}. 
. tab classification1_1

                      {txt}Classification1_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         29        1.61        1.61
{txt}Arts in general (visual art, music, the {c |}{res}         63        3.51        5.12
                       {txt}Athletics/sports {c |}{res}         44        2.45        7.57
 {txt}Birthplace/hometown/place of residence {c |}{res}         12        0.67        8.24
                       {txt}Environmentalism {c |}{res}          3        0.17        8.40
{txt}Food and drink (excluding beer and liqu {c |}{res}          5        0.28        8.68
                                 {txt}Gender {c |}{res}        187       10.41       19.09
                            {txt}Human being {c |}{res}         50        2.78       21.87
                         {txt}Leisure travel {c |}{res}          1        0.06       21.93
       {txt}Mental feature/personality trait {c |}{res}         88        4.90       26.82
    {txt}Nationality/ethnicity/race/language {c |}{res}        137        7.62       34.45
   {txt}Non-family non-romantic relationship {c |}{res}         63        3.51       37.95
{txt}Non-professional interest/dislike/activ {c |}{res}         67        3.73       41.68
        {txt}Non-spousal family relationship {c |}{res}        493       27.43       69.12
                                  {txt}Other {c |}{res}         23        1.28       70.40
{txt}Partying/nightclubs/bars (including bee {c |}{res}          1        0.06       70.45
                       {txt}Physical feature {c |}{res}          6        0.33       70.78
                  {txt}Political Orientation {c |}{res}          1        0.06       70.84
                  {txt}Political orientation {c |}{res}         16        0.89       71.73
           {txt}Pro-social personality trait {c |}{res}         70        3.90       75.63
       {txt}Professional interest/profession {c |}{res}         88        4.90       80.52
     {txt}Religion, morality, and philosophy {c |}{res}        168        9.35       89.87
           {txt}Romantic relationship/status {c |}{res}         33        1.84       91.71
                     {txt}Sexual orientation {c |}{res}         26        1.45       93.16
                    {txt}Socioeconomic class {c |}{res}         11        0.61       93.77
{txt}Specific work of non-religious art or a {c |}{res}          4        0.22       93.99
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        108        6.01      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,797      100.00
{txt}
{com}. replace classification1_1 = "Political orientation" if classification1_1 == "Political Orientation"
{txt}(1 real change made)

{com}. tab classification1_2

                      {txt}Classification1_2 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
    Nationality/ethnicity/race/language {c |}{res}          2       20.00       20.00
       {txt}Professional interest/profession {c |}{res}          2       20.00       40.00
     {txt}Religion, morality, and philosophy {c |}{res}          2       20.00       60.00
           {txt}Romantic relationship/status {c |}{res}          2       20.00       80.00
                    {txt}Socioeconomic class {c |}{res}          1       10.00       90.00
{txt}Student (e.g. Cornell, major, year in s {c |}{res}          1       10.00      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}         10      100.00
{txt}
{com}. tab classification1_3
{txt}no observations

{com}. 
. tab classification2_1

                      {txt}Classification2_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         38        2.15        2.15
{txt}Arts in general (visual art, music, the {c |}{res}         80        4.52        6.67
                       {txt}Athletics/sports {c |}{res}         48        2.71        9.38
 {txt}Birthplace/hometown/place of residence {c |}{res}         24        1.36       10.74
                       {txt}Environmentalism {c |}{res}          6        0.34       11.08
{txt}Food and drink (excluding beer and liqu {c |}{res}          3        0.17       11.25
                                 {txt}Gender {c |}{res}        147        8.31       19.56
                            {txt}Human being {c |}{res}         10        0.57       20.12
                         {txt}Leisure travel {c |}{res}          4        0.23       20.35
       {txt}Mental feature/personality trait {c |}{res}        125        7.07       27.42
    {txt}Nationality/ethnicity/race/language {c |}{res}        165        9.33       36.74
   {txt}Non-family non-romantic relationship {c |}{res}        244       13.79       50.54
{txt}Non-professional interest/dislike/activ {c |}{res}        100        5.65       56.19
        {txt}Non-spousal family relationship {c |}{res}        199       11.25       67.44
                                  {txt}Other {c |}{res}         17        0.96       68.40
{txt}Partying/nightclubs/bars (including bee {c |}{res}          4        0.23       68.63
                       {txt}Physical feature {c |}{res}          5        0.28       68.91
                  {txt}Political orientation {c |}{res}         34        1.92       70.83
           {txt}Pro-social personality trait {c |}{res}         60        3.39       74.22
       {txt}Professional interest/profession {c |}{res}        137        7.74       81.97
     {txt}Religion, morality, and philosophy {c |}{res}        111        6.27       88.24
           {txt}Romantic relationship/status {c |}{res}         73        4.13       92.37
                     {txt}Sexual orientation {c |}{res}         21        1.19       93.56
                    {txt}Socioeconomic class {c |}{res}          8        0.45       94.01
{txt}Specific work of non-religious art or a {c |}{res}          3        0.17       94.18
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        103        5.82      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,769      100.00
{txt}
{com}. tab classification2_2

                   {txt}Classification2_2 {c |}      Freq.     Percent        Cum.
{hline 37}{c +}{hline 35}
                              Gender {c |}{res}          1        9.09        9.09
 {txt}Nationality/ethnicity/race/language {c |}{res}          2       18.18       27.27
{txt}Non-family non-romantic relationship {c |}{res}          1        9.09       36.36
     {txt}Non-spousal family relationship {c |}{res}          2       18.18       54.55
    {txt}Professional interest/profession {c |}{res}          2       18.18       72.73
        {txt}Romantic relationship/status {c |}{res}          3       27.27      100.00
{txt}{hline 37}{c +}{hline 35}
                               Total {c |}{res}         11      100.00
{txt}
{com}. tab classification2_3

              {txt}Classification2_3 {c |}      Freq.     Percent        Cum.
{hline 32}{c +}{hline 35}
                         Gender {c |}{res}          1       50.00       50.00
{txt}Non-spousal family relationship {c |}{res}          1       50.00      100.00
{txt}{hline 32}{c +}{hline 35}
                          Total {c |}{res}          2      100.00
{txt}
{com}. 
. tab classification3_1

                      {txt}Classification3_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         48        2.77        2.77
{txt}Arts in general (visual art, music, the {c |}{res}         78        4.50        7.27
                       {txt}Athletics/sports {c |}{res}         60        3.46       10.73
 {txt}Birthplace/hometown/place of residence {c |}{res}         44        2.54       13.26
                       {txt}Clothing/fashion {c |}{res}          1        0.06       13.32
                       {txt}Environmentalism {c |}{res}          7        0.40       13.73
{txt}Food and drink (excluding beer and liqu {c |}{res}         15        0.87       14.59
                                 {txt}Gender {c |}{res}         94        5.42       20.01
                            {txt}Human being {c |}{res}          7        0.40       20.42
                         {txt}Leisure travel {c |}{res}          2        0.12       20.53
       {txt}Mental feature/personality trait {c |}{res}        107        6.17       26.70
    {txt}Nationality/ethnicity/race/language {c |}{res}        133        7.67       34.37
   {txt}Non-family non-romantic relationship {c |}{res}        181       10.44       44.81
{txt}Non-professional interest/dislike/activ {c |}{res}        118        6.81       51.61
        {txt}Non-spousal family relationship {c |}{res}        187       10.78       62.40
                                  {txt}Other {c |}{res}         12        0.69       63.09
{txt}Partying/nightclubs/bars (including bee {c |}{res}          6        0.35       63.44
                       {txt}Physical feature {c |}{res}         13        0.75       64.19
                  {txt}Political orientation {c |}{res}         51        2.94       67.13
           {txt}Pro-social personality trait {c |}{res}         93        5.36       72.49
       {txt}Professional interest/profession {c |}{res}        145        8.36       80.85
     {txt}Religion, morality, and philosophy {c |}{res}        109        6.29       87.14
           {txt}Romantic relationship/status {c |}{res}         56        3.23       90.37
                     {txt}Sexual orientation {c |}{res}         21        1.21       91.58
                    {txt}Socioeconomic class {c |}{res}         14        0.81       92.39
{txt}Specific work of non-religious art or a {c |}{res}          7        0.40       92.79
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        124        7.15       99.94
                     {txt}sexual orientation {c |}{res}          1        0.06      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,734      100.00
{txt}
{com}. replace classification3_1 = "Sexual orientation" if classification3_1 == "sexual orientation"
{txt}(1 real change made)

{com}. tab classification3_2

                      {txt}Classification3_2 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
Arts in general (visual art, music, the {c |}{res}          1       14.29       14.29
 {txt}Birthplace/hometown/place of residence {c |}{res}          1       14.29       28.57
       {txt}Professional interest/profession {c |}{res}          2       28.57       57.14
           {txt}Romantic relationship/status {c |}{res}          2       28.57       85.71
                     {txt}Sexual orientation {c |}{res}          1       14.29      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}          7      100.00
{txt}
{com}. tab classification3_3

                      {txt}Classification3_3 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
        Non-spousal family relationship {c |}{res}          1       50.00       50.00
{txt}Student (e.g. Cornell, major, year in s {c |}{res}          1       50.00      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}          2      100.00
{txt}
{com}. 
. tab classification4_1

                      {txt}Classification4_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         43        2.56        2.56
{txt}Arts in general (visual art, music, the {c |}{res}         87        5.18        7.75
                       {txt}Athletics/sports {c |}{res}         89        5.30       13.05
 {txt}Birthplace/hometown/place of residence {c |}{res}         67        3.99       17.04
                       {txt}Clothing/fashion {c |}{res}          3        0.18       17.22
                       {txt}Environmentalism {c |}{res}          8        0.48       17.70
{txt}Food and drink (excluding beer and liqu {c |}{res}         13        0.77       18.47
                                 {txt}Gender {c |}{res}         59        3.52       21.99
                            {txt}Human being {c |}{res}          7        0.42       22.41
                         {txt}Leisure travel {c |}{res}         12        0.72       23.12
       {txt}Mental feature/personality trait {c |}{res}        141        8.40       31.53
    {txt}Nationality/ethnicity/race/language {c |}{res}        115        6.85       38.38
   {txt}Non-family non-romantic relationship {c |}{res}        164        9.77       48.15
{txt}Non-professional interest/dislike/activ {c |}{res}        157        9.36       57.51
        {txt}Non-spousal family relationship {c |}{res}        139        8.28       65.79
                                  {txt}Other {c |}{res}         11        0.66       66.45
{txt}Partying/nightclubs/bars (including bee {c |}{res}          4        0.24       66.69
                       {txt}Physical feature {c |}{res}         25        1.49       68.18
                  {txt}Political orientation {c |}{res}         44        2.62       70.80
           {txt}Pro-social personality trait {c |}{res}         76        4.53       75.33
       {txt}Professional interest/profession {c |}{res}        140        8.34       83.67
     {txt}Religion, morality, and philosophy {c |}{res}         73        4.35       88.02
           {txt}Romantic relationship/status {c |}{res}         45        2.68       90.70
                     {txt}Sexual orientation {c |}{res}          8        0.48       91.18
                    {txt}Socioeconomic class {c |}{res}         20        1.19       92.37
{txt}Specific work of non-religious art or a {c |}{res}          5        0.30       92.67
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        122        7.27       99.94
                                  {txt}other {c |}{res}          1        0.06      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,678      100.00
{txt}
{com}. replace classification4_1 = "Other" if classification4_1 == "other"
{txt}(1 real change made)

{com}. tab classification4_2

                      {txt}Classification4_2 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}          1       10.00       10.00
                       {txt}Athletics/sports {c |}{res}          1       10.00       20.00
 {txt}Birthplace/hometown/place of residence {c |}{res}          2       20.00       40.00
                         {txt}Leisure travel {c |}{res}          1       10.00       50.00
   {txt}Non-family non-romantic relationship {c |}{res}          1       10.00       60.00
{txt}Non-professional interest/dislike/activ {c |}{res}          1       10.00       70.00
        {txt}Non-spousal family relationship {c |}{res}          1       10.00       80.00
                       {txt}Physical feature {c |}{res}          1       10.00       90.00
       {txt}Professional interest/profession {c |}{res}          1       10.00      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}         10      100.00
{txt}
{com}. tab classification4_3

                   {txt}Classification4_3 {c |}      Freq.     Percent        Cum.
{hline 37}{c +}{hline 35}
Non-family non-romantic relationship {c |}{res}          1      100.00      100.00
{txt}{hline 37}{c +}{hline 35}
                               Total {c |}{res}          1      100.00
{txt}
{com}. 
. tab classification5_1

                      {txt}Classification5_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         31        1.89        1.89
{txt}Arts in general (visual art, music, the {c |}{res}         88        5.37        7.26
                       {txt}Athletics/sports {c |}{res}         86        5.25       12.52
 {txt}Birthplace/hometown/place of residence {c |}{res}         71        4.33       16.85
                       {txt}Clothing/fashion {c |}{res}          5        0.31       17.16
                       {txt}Environmentalism {c |}{res}         10        0.61       17.77
{txt}Food and drink (excluding beer and liqu {c |}{res}         20        1.22       18.99
                                 {txt}Gender {c |}{res}         46        2.81       21.79
                            {txt}Human being {c |}{res}         20        1.22       23.02
                         {txt}Leisure travel {c |}{res}          9        0.55       23.57
       {txt}Mental feature/personality trait {c |}{res}        182       11.11       34.68
    {txt}Nationality/ethnicity/race/language {c |}{res}        123        7.51       42.19
   {txt}Non-family non-romantic relationship {c |}{res}        130        7.94       50.12
{txt}Non-professional interest/dislike/activ {c |}{res}        186       11.36       61.48
        {txt}Non-spousal family relationship {c |}{res}         99        6.04       67.52
                                  {txt}Other {c |}{res}         18        1.10       68.62
{txt}Partying/nightclubs/bars (including bee {c |}{res}          5        0.31       68.93
                       {txt}Physical feature {c |}{res}         21        1.28       70.21
                  {txt}Political orientation {c |}{res}         48        2.93       73.14
           {txt}Pro-social personality trait {c |}{res}         75        4.58       77.72
       {txt}Professional interest/profession {c |}{res}        114        6.96       84.68
     {txt}Religion, morality, and philosophy {c |}{res}         80        4.88       89.56
           {txt}Romantic relationship/status {c |}{res}         51        3.11       92.67
                     {txt}Sexual orientation {c |}{res}          8        0.49       93.16
                    {txt}Socioeconomic class {c |}{res}         20        1.22       94.38
{txt}Specific work of non-religious art or a {c |}{res}          6        0.37       94.75
{txt}Student (e.g. Cornell, major, year in s {c |}{res}         86        5.25      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,638      100.00
{txt}
{com}. tab classification5_2

                      {txt}Classification5_2 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}          1       12.50       12.50
   {txt}Non-family non-romantic relationship {c |}{res}          1       12.50       25.00
{txt}Non-professional interest/dislike/activ {c |}{res}          2       25.00       50.00
        {txt}Non-spousal family relationship {c |}{res}          1       12.50       62.50
                       {txt}Physical feature {c |}{res}          1       12.50       75.00
       {txt}Professional interest/profession {c |}{res}          2       25.00      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}          8      100.00
{txt}
{com}. tab classification5_3
{txt}no observations

{com}. 
. ***RESULTS***
. 
. *RELIGION
. generate religion = 0
{txt}
{com}. replace religion = 1 if classification1_1 == "Religion, morality, and philosophy"
{txt}(168 real changes made)

{com}. replace religion = 1 if classification1_2 == "Religion, morality, and philosophy"
{txt}(2 real changes made)

{com}. replace religion = 1 if classification2_1 == "Religion, morality, and philosophy" 
{txt}(96 real changes made)

{com}. replace religion = 1 if classification2_2 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification2_3 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification3_1 == "Religion, morality, and philosophy" 
{txt}(97 real changes made)

{com}. replace religion = 1 if classification3_2 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification3_3 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification4_1 == "Religion, morality, and philosophy" 
{txt}(62 real changes made)

{com}. replace religion = 1 if classification4_2 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification4_3 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification5_1 == "Religion, morality, and philosophy" 
{txt}(70 real changes made)

{com}. replace religion = 1 if classification5_2 == "Religion, morality, and philosophy"
{txt}(0 real changes made)

{com}. 
. *by religion
. *q19 asks about religion
. *1 = christian-protestant
. *2 = christian-catholic
. *3 = christian other
. *4 = jewish
. *5 = muslim
. *6 = buddhist
. *7 = hindu
. *8 = agnostic
. *9 = atheist
. *10 = other
. rename q19 relig
{txt}
{com}. 
. gen id = _n
{txt}
{com}. drop if id <= 1192
{txt}(1192 observations deleted)

{com}. 
. *Panel C: All
. count if treatR == 0 //300
{res}  300
{txt}
{com}. count if treatR == 1 // 306
{res}  306
{txt}
{com}. di 300+306
{res}606
{txt}
{com}. 
. count if religion == 1 & treatR == 0 //80
{res}   80
{txt}
{com}. count if religion == 1 & treatR == 1 //84
{res}   84
{txt}
{com}. 
. di 80/300 //.267
{res}.26666667
{txt}
{com}. di 84/306 //.275
{res}.2745098
{txt}
{com}. 
. prtesti 300 .267 306 .275

{txt}Two-sample test of proportion                      {res}x{txt}: Number of obs = {res}     300
                                                   y{txt}: Number of obs = {res}     306
{txt}{hline 13}{c TT}{hline 64}
    Variable {c |}{col 22}Mean{col 29}Std. Err.{col 44}z{col 49}P>|z|{col 59}[95% Conf. Interval]
{hline 13}{c +}{hline 64}
{col 12}x{col 14}{c |}{res}{col 17}     .267{col 28} .0255415{col 58} .2169395{col 70} .3170605
           {txt}y {c |}{res}{col 17}     .275{col 28} .0255255{col 58} .2249709{col 70} .3250291
{txt}{hline 13}{c +}{hline 64}
        diff {c |}{res}{col 17}    -.008{col 28} .0361099{col 58} -.078774{col 70}  .062774
{txt}{col 14}{c |}{col 17}under Ho:{res}{col 28} .0361146{col 38}   -0.22{col 49}0.825
{txt}{hline 13}{c BT}{hline 64}
        diff = prop({res}x{txt}) - prop({res}y{txt})                                  z = {res} -0.2215
{txt}    Ho: diff = 0

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(Z < z) = {res}0.4123         {txt}Pr(|Z| < |z|) = {res}0.8247          {txt}Pr(Z > z) = {res}0.5877
{txt}
{com}. 
. *drop those who aren't protestant in the other christian category
. replace relig = "." if relig == "3" & q20 == "Christian-Orthodox"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "my business"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "orthodoxy"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "LDS/Mormon"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness :)"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Orthodox"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "I don't affiliate with any church"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness"
{txt}(2 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "I see myself as a Christian however I draw spiritual inspiration from many religious traditions"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Unity School of Christianity"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Greek Orthodox"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Spiritual"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "independent"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "none"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "unity/new age"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "afro-christian called UMBANDA"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "no group or religion"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "LDS"
{txt}(2 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Christian nature lover"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Believer but not praticing"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Spirtulist"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Greek Orthodox"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Kardecist Spiritism"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "latter-day saint (Mormon)"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Coptic, Orthodox"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "I believe in God, and I pray but I don't follow any kind of organized church, nor do I profess my beliefs."
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Greek Orthodox"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Orthdox"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "lds"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Messianic Judiasm"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "I am Orthodox Christian"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Coptic Orthodox Christian"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "not very religious"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "latter day saints"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "LDS"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Orthodox"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Latter Day Saint"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "I love jesus and god but religion is a scam and has not contributed anything to humanity."
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "LDS"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witnesses"
{txt}(2 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witnesses"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "The Church of Jesus Christ of Latter-day Saints"
{txt}(1 real change made)

{com}. 
. *Panel C: Protestant
. count if relig == "3" & treatR == 0 //25
{res}   25
{txt}
{com}. count if relig == "3" & treatR == 1 //26
{res}   26
{txt}
{com}. count if relig == "1" & treatR == 0 //49
{res}   49
{txt}
{com}. count if relig == "1" & treatR == 1 //59
{res}   59
{txt}
{com}. di 25+26+49+59
{res}159
{txt}
{com}. 
. count if religion == 1 & relig == "3" & treatR == 0 //10
{res}   10
{txt}
{com}. count if religion == 1 & relig == "3" & treatR == 1 //8
{res}    8
{txt}
{com}. count if religion == 1 & relig == "1" & treatR == 0 //22
{res}   22
{txt}
{com}. count if religion == 1 & relig == "1" & treatR == 1 //31
{res}   31
{txt}
{com}. 
. di (10+22)/(25+49) //32,74, =.432
{res}.43243243
{txt}
{com}. di (8+31)/(26+59) //39,85, =.459
{res}.45882353
{txt}
{com}. prtesti 74 .432 85 .459

{txt}Two-sample test of proportion                      {res}x{txt}: Number of obs = {res}      74
                                                   y{txt}: Number of obs = {res}      85
{txt}{hline 13}{c TT}{hline 64}
    Variable {c |}{col 22}Mean{col 29}Std. Err.{col 44}z{col 49}P>|z|{col 59}[95% Conf. Interval]
{hline 13}{c +}{hline 64}
{col 12}x{col 14}{c |}{res}{col 17}     .432{col 28} .0575838{col 58} .3191379{col 70} .5448621
           {txt}y {c |}{res}{col 17}     .459{col 28}   .05405{col 58}  .353064{col 70}  .564936
{txt}{hline 13}{c +}{hline 64}
        diff {c |}{res}{col 17}    -.027{col 28} .0789765{col 58}-.1817911{col 70} .1277911
{txt}{col 14}{c |}{col 17}under Ho:{res}{col 28} .0790381{col 38}   -0.34{col 49}0.733
{txt}{hline 13}{c BT}{hline 64}
        diff = prop({res}x{txt}) - prop({res}y{txt})                                  z = {res} -0.3416
{txt}    Ho: diff = 0

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(Z < z) = {res}0.3663         {txt}Pr(|Z| < |z|) = {res}0.7326          {txt}Pr(Z > z) = {res}0.6337
{txt}
{com}. 
. *Panel C: Catholic
. count if relig == "2" & treatR == 0 //50
{res}   50
{txt}
{com}. count if relig == "2" & treatR == 1 //41
{res}   41
{txt}
{com}. di 50 + 41
{res}91
{txt}
{com}. 
. count if religion == 1 & relig == "2" & treatR == 0 //11
{res}   11
{txt}
{com}. count if religion == 1 & relig == "2" & treatR == 1 //11
{res}   11
{txt}
{com}. 
. di 11/50 //.22
{res}.22
{txt}
{com}. di 11/41 //.268
{res}.26829268
{txt}
{com}. prtesti 50 .22 41 .268

{txt}Two-sample test of proportion                      {res}x{txt}: Number of obs = {res}      50
                                                   y{txt}: Number of obs = {res}      41
{txt}{hline 13}{c TT}{hline 64}
    Variable {c |}{col 22}Mean{col 29}Std. Err.{col 44}z{col 49}P>|z|{col 59}[95% Conf. Interval]
{hline 13}{c +}{hline 64}
{col 12}x{col 14}{c |}{res}{col 17}      .22{col 28} .0585833{col 58} .1051789{col 70} .3348211
           {txt}y {c |}{res}{col 17}     .268{col 28} .0691721{col 58} .1324252{col 70} .4035748
{txt}{hline 13}{c +}{hline 64}
        diff {c |}{res}{col 17}    -.048{col 28} .0906465{col 58}-.2256638{col 70} .1296638
{txt}{col 14}{c |}{col 17}under Ho:{res}{col 28} .0901898{col 38}   -0.53{col 49}0.595
{txt}{hline 13}{c BT}{hline 64}
        diff = prop({res}x{txt}) - prop({res}y{txt})                                  z = {res} -0.5322
{txt}    Ho: diff = 0

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(Z < z) = {res}0.2973         {txt}Pr(|Z| < |z|) = {res}0.5946          {txt}Pr(Z > z) = {res}0.7027
{txt}
{com}. 
. *Panel C: Jewish
. count if relig == "4" & treatR == 0 //4
{res}    4
{txt}
{com}. count if relig == "4" & treatR == 1 //10
{res}   10
{txt}
{com}. di 4 + 10
{res}14
{txt}
{com}. 
. count if religion == 1 & relig == "4" & treatR == 0 //4
{res}    4
{txt}
{com}. count if religion == 1 & relig == "4" & treatR == 1 //5
{res}    5
{txt}
{com}. 
. di 4/4 //1
{res}1
{txt}
{com}. di 5/10 //.5
{res}.5
{txt}
{com}. 
. prtesti 4 1 10 .5

{txt}Two-sample test of proportion                      {res}x{txt}: Number of obs = {res}       4
                                                   y{txt}: Number of obs = {res}      10
{txt}{hline 13}{c TT}{hline 64}
    Variable {c |}{col 22}Mean{col 29}Std. Err.{col 44}z{col 49}P>|z|{col 59}[95% Conf. Interval]
{hline 13}{c +}{hline 64}
{col 12}x{col 14}{c |}{res}{col 17}        1{col 28}        0{col 58}        1{col 70}        1
           {txt}y {c |}{res}{col 17}       .5{col 28} .1581139{col 58} .1901025{col 70} .8098975
{txt}{hline 13}{c +}{hline 64}
        diff {c |}{res}{col 17}       .5{col 28} .1581139{col 58} .1901025{col 70} .8098975
{txt}{col 14}{c |}{col 17}under Ho:{res}{col 28} .2834734{col 38}    1.76{col 49}0.078
{txt}{hline 13}{c BT}{hline 64}
        diff = prop({res}x{txt}) - prop({res}y{txt})                                  z = {res}  1.7638
{txt}    Ho: diff = 0

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(Z < z) = {res}0.9611         {txt}Pr(|Z| < |z|) = {res}0.0778          {txt}Pr(Z > z) = {res}0.0389
{txt}
{com}. 
. *Panel C: Agnostic/Atheist
. count if relig == "8" & treatR == 0 //57
{res}   57
{txt}
{com}. count if relig == "8" & treatR == 1 //53
{res}   53
{txt}
{com}. count if relig == "9" & treatR == 0 //75
{res}   75
{txt}
{com}. count if relig == "9" & treatR == 1 //67
{res}   67
{txt}
{com}. di 57+53+75+67
{res}252
{txt}
{com}. 
. count if religion == 1 & relig == "8" & treatR == 0 //7
{res}    7
{txt}
{com}. count if religion == 1 & relig == "8" & treatR == 1 //5
{res}    5
{txt}
{com}. count if religion == 1 & relig == "9" & treatR == 0 //17
{res}   17
{txt}
{com}. count if religion == 1 & relig == "9" & treatR == 1 //12
{res}   12
{txt}
{com}. 
. di (7+17)/(57+75) //24,132, =.182
{res}.18181818
{txt}
{com}. di (5+12)/(53+67) //17,120, =.142
{res}.14166667
{txt}
{com}. 
. prtesti 132 .182 120 .142

{txt}Two-sample test of proportion                      {res}x{txt}: Number of obs = {res}     132
                                                   y{txt}: Number of obs = {res}     120
{txt}{hline 13}{c TT}{hline 64}
    Variable {c |}{col 22}Mean{col 29}Std. Err.{col 44}z{col 49}P>|z|{col 59}[95% Conf. Interval]
{hline 13}{c +}{hline 64}
{col 12}x{col 14}{c |}{res}{col 17}     .182{col 28} .0335835{col 58} .1161776{col 70} .2478224
           {txt}y {c |}{res}{col 17}     .142{col 28} .0318638{col 58} .0795482{col 70} .2044518
{txt}{hline 13}{c +}{hline 64}
        diff {c |}{res}{col 17}      .04{col 28} .0462942{col 58}-.0507349{col 70} .1307349
{txt}{col 14}{c |}{col 17}under Ho:{res}{col 28} .0465831{col 38}    0.86{col 49}0.391
{txt}{hline 13}{c BT}{hline 64}
        diff = prop({res}x{txt}) - prop({res}y{txt})                                  z = {res}  0.8587
{txt}    Ho: diff = 0

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(Z < z) = {res}0.8047         {txt}Pr(|Z| < |z|) = {res}0.3905          {txt}Pr(Z > z) = {res}0.1953
{txt}
{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/gwf25/Desktop/appendixT1.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 7 Dec 2015, 09:58:18
{txt}{.-}
{smcl}
{txt}{sf}{ul off}